home *** CD-ROM | disk | FTP | other *** search
- ----- Fast Square Root Doc by Noble Roman -----
-
- Ok, if you studied calculus you might already know this but
- lets say you need that square root of 23, and you have no
- calulator and you really need the answer. So you make
-
- f(x) = √x
-
- According to some differientation rules you take f(x) and add it
- to the derivative of f(x) [ which is f'(x) ] and multiply it by
- by dx. dx is the difference between x and some normal square
- close to x.
-
- dx
- √x + ---
- 2√x
-
- From this you you get a very close answer to the real one.
-
- Lets do and example.
-
- √34 36 is close to 34 and I know the square root of it
- which is 6.
- So dx=x-36 which is -2
- dx=-2
-
- -2
- √36 + ----
- 2√36
- 1
- 6 - -
- 6
- 5 35
- √34 is approxamitly 5- = --- = 5.83333
- 6 6
- The Square root of 34 is really 5.83092, pretty close eh.
-
-
- For more help or info, contact me at
- thomas@unix.cde.com
-
-
- p.s.
- if you need some help on fixed point math, right me
- and I will make a doc on that also.
-